package com.myd.vo;

public class  Result {
//    SUCCESS("200","成功"),
//    FAIL("201","失败");

    private String code;
    private String msg;
    private Object object;


     Result(String code,String msg){
        this.msg = msg;
        this.code = code;
    }
    public void setObject(Object o){
         this.object = o;
    }
    public static Result success(){
         return new Result("200","success");
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getObject() {
        return object;
    }

    //    public static Result success(){
//        return ;
//    }
}
